<?php
/**
 * Created by PhpStorm.
 * Muser: lvchy
 * Date: 2018/9/26
 * Time: 16:48
 */

namespace app\common\model;
use think\Model;
class Userrole extends Model
{
// 设置完整的数据表（包含前缀）
    protected $table = 'sys_user_role';

    public function info(){
        return $this->belongsTo('Role','role_id','role_id')->bind('role_name');
    }
}